import React from 'react';

export default function Toptitle(props) {
  return (
    <div>
      <div
        style={{
          width: '100%',
          height: '0.3rem',
          borderLeft: '0.04rem solid #1677ff',
          lineHeight: '0.3rem',
          paddingLeft: '0.1rem',
          paddingBottom: '0.2rem',
          marginTop: '0.2rem',
        }}
      >
        <h2>{props.title ? props.title : '标题'}</h2>
      </div>
    </div>
  );
}
